package com.zhejiangzhengyuan.municipal_common.service;

import com.zhejiangzhengyuan.municipal_common.entity.WarnEvent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhejiangzhengyuan.municipal_common.response.ResponseVo;

import java.util.List;

/**
 * 警报事件表，存储物联网或人工上报的警报事件数据 服务类
 *
 * @author linju
 * @since 2019-11-22
 */
public interface WarnEventService extends IService<WarnEvent> {

  int updateWarnEvent(WarnEvent warnEvent);

  long updateWarnEvent(
      String moduleName, WarnEvent warnEvent, String warnType, String departmentName);

  long updateWarnEvent(
      String moduleName, WarnEvent warnEvent, String warnType, List<Long> userInfoId);

  long insertWarnEvent(
      String moduleName, WarnEvent warnEvent, String warnType, List<Long> userInfoId);

  long insertWarnEvent(
      String moduleName, WarnEvent warnEvent, String warnType, String departmentName);

  long insertWarnEvent(String moduleName, WarnEvent warnEvent, String warnType, Long userInfoId);

  ResponseVo warnEventChart(String startTime, String endTime);
}
